package xiaopiya.robot.handler.main;

/**
 * @author Ray (ayufox@gmail.com)
 * @version 0.1
 */
public class ShutterMessageFilter implements IMessageFilter
{
	private final static int SPLIT = 63733;

	/*
	 * (non-Javadoc)
	 * 
	 * @see xiaopiya.robot.handler.main.IMessageFilter#filter(java.lang.String)
	 */
	public String filter(String source)
	{
		source = source.trim();
		int index = source.indexOf(SPLIT);
		if (index > 0)
		{
			return source.substring(0, index).trim();
		} else
		{
			return source;
		}
	}

}
